package gs.android.bingomathfree;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.widget.TextView;

public class RecordsActivity extends Activity {
	private TextView time1, rounds1, time2, rounds2, time3, rounds3;
	private SharedPreferences sp;
	
	@Override
	public void onCreate(Bundle savedInstance) {
		super.onCreate(savedInstance);
		setContentView(R.layout.records);
		
		sp = getSharedPreferences("bingo", MODE_PRIVATE);
		
		time1 = (TextView) findViewById(R.id.lblRecord1Time);
		time1.setText("" + sp.getInt("record1time", 9999));
		rounds1 = (TextView) findViewById(R.id.lblRecord1Rounds);
		rounds1.setText("" + sp.getInt("record1rounds", 90));
		time2 = (TextView) findViewById(R.id.lblRecord2Time);
		time2.setText("" + sp.getInt("record2time", 9999));
		rounds2 = (TextView) findViewById(R.id.lblRecord2Rounds);
		rounds2.setText("" + sp.getInt("record2rounds", 90));
		time3 = (TextView) findViewById(R.id.lblRecord3Time);
		time3.setText("" + sp.getInt("record3time", 9999));
		rounds3 = (TextView) findViewById(R.id.lblRecord3Rounds);
		rounds3.setText("" + sp.getInt("record3rounds", 90));
	}
}
